package io.renren.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.api.dao.PsOrderRouteSectionDao;
import io.renren.modules.api.entity.PsOrderRouteSectionEntity;
import io.renren.modules.api.service.PsOrderRouteSectionService;



@Service("psOrderRouteSectionService")
public class PsOrderRouteSectionServiceImpl implements PsOrderRouteSectionService {
	@Autowired
	private PsOrderRouteSectionDao psOrderRouteSectionDao;
	
	@Override
	public PsOrderRouteSectionEntity queryObject(Long id){
		return psOrderRouteSectionDao.queryObject(id);
	}
	
	@Override
	public List<PsOrderRouteSectionEntity> queryList(Map<String, Object> map){
		return psOrderRouteSectionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return psOrderRouteSectionDao.queryTotal(map);
	}
	
	@Override
	public void save(PsOrderRouteSectionEntity psOrderRouteSection){
		psOrderRouteSectionDao.save(psOrderRouteSection);
	}
	
	@Override
	public void update(PsOrderRouteSectionEntity psOrderRouteSection){
		psOrderRouteSectionDao.update(psOrderRouteSection);
	}
	
	@Override
	public void delete(Long id){
		psOrderRouteSectionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		psOrderRouteSectionDao.deleteBatch(ids);
	}

	@Override
	public List<Map<String, Object>> queryDestinationsByOrderNum(String ordernum) {
		return psOrderRouteSectionDao.queryDestinationsByOrderNum(ordernum);
	}

	@Override
	public PsOrderRouteSectionEntity queryDesByOrderNumAndSortNum(String ordernum, Integer arriveDesNum) {
		return psOrderRouteSectionDao.queryDesByOrderNumAndSortNum(ordernum,arriveDesNum);
	}

	@Override
	public List<PsOrderRouteSectionEntity> queryListByOrderNum(String ordernum) {
		return psOrderRouteSectionDao.queryListByOrderNum(ordernum);
	}

}
